package com.example.demo.service.order;

import com.example.demo.domain.order.SaleOrder;
import com.example.demo.domain.order.SaleOrderItem;

import java.math.BigDecimal;

public interface SaleOrderItemService {
	int deleteByPrimaryKey(Integer id);

    int insert(SaleOrder saleOrder,Integer[] serviceId);

    int insertSelective(SaleOrderItem record);

    SaleOrderItem selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SaleOrder saleOrder, Integer[] serviceId);

    int updateByPrimaryKey(SaleOrderItem record);

     BigDecimal calculateSubPrice(Integer serviceId, Integer vipId);

     BigDecimal[] calculatePrice(Integer[] servicesIds, Integer vipId);

}
